
/*
 * KarvalyJS - Karvaly JavaScript Library
 * http://code.google.com/p/karvalyjs/
 * 
 * Copyright 2011 Dániel Árkai
 * danielarkai@gmail.com
 * 
 * Released under MIT License
 * http://www.opensource.org/licenses/mit-license.php
 */

/*
 * Karvaly
 * depends:
 */
var Karvaly = (function() {
    
    var hasOwnProperty = Object.prototype.hasOwnProperty;
    var slice = Array.prototype.slice;
    
    var Karvaly = {
	hasOwnProperty : function(obj, prop) {
	    return hasOwnProperty.call(obj, prop);
	},
	slice : function(array, start, end) {
	    return slice.call(array, start || 0, end || array.length);
	},
	defineProperties : function(obj, props) {
	    var k;
	    for (k in props) {
		if (hasOwnProperty.call(props, k)) {
		    obj[k] = props[k];
		}
	    }
	}
    };
    
    return Karvaly;
})();
